
using System.Text.Json.Serialization;
using UwinEducation.Shared.Converters;
using UwinEducation.Shared.Enums;

namespace UwinEducation.Shared.Models
{
    /// <summary>
    /// 预约分页请求参数
    /// </summary>
    public class AppointmentPageRequest : PageRequest
    {
        /// <summary>
        /// 学生ID
        /// </summary>
        public Guid? StudentId { get; set; }

        /// <summary>
        /// 教师ID
        /// </summary>
        public Guid? TeacherId { get; set; }
        /// <summary>
        /// 学生姓名
        /// </summary>
        public string? StudentName { get; set; }
        /// <summary>
        /// 学号
        /// </summary>
        public string? StudentNo { get; set; }
        /// <summary>
        /// 预约状态
        /// </summary>
        public AppointmentStatus? Status { get; set; }

        /// <summary>
        /// 开始日期
        /// </summary>
        [JsonConverter(typeof(CustomDateTimeConverter))]
        public DateTime? StartDate { get; set; }

        /// <summary>
        /// 结束日期
        /// </summary>
        [JsonConverter(typeof(CustomDateTimeConverter))]
        public DateTime? EndDate { get; set; }
    }
} 